* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
}

.motivation-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: breathe 6s ease-in-out infinite;
    border: 1px solid #bae6fd;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.98); opacity: 0.95; }
    50% { transform: scale(1); opacity: 1; }
}

.motivation-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(125, 211, 252, 0.3));
}

.motivation-text {
    color: #0c4a6e;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 基础样式 */
body {
    background: linear-gradient(135deg, #fff0f5, #ffe4e1); /* 渐变背景 */
    font-family: 'Comic Sans MS', cursive, sans-serif; /* 圆润字体 */
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 确保页面高度占满整个视口 */
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 9rem auto 2rem; /* 顶部留出导航栏高度，底部留出页脚空间 */
    padding: 20px;
    flex: 1; /* 使内容区域占据剩余空间 */
}

/* 随机鼓励语区块 */
.motivation-card {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motivation-card:hover {
    transform: translateY(-5px); /* 悬停时上移 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.motivation-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite; /* 浮动动画 */
}

.motivation-text {
    font-size: 18px;
    color: #d6336c; /* 深粉色文字 */
    font-weight: bold;
}


/* 用户信息区块 */
.profile-section {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-section:hover {
    transform: translateY(-5px); /* 悬停时上移 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #ff69b4; /* 粉色边框 */
    animation: float 3s ease-in-out infinite; /* 浮动动画 */
}

.user-info {
    flex: 1;
}

.username {
    font-size: 24px;
    color: #d6336c; /* 深粉色文字 */
    margin: 0;
}

.join-date {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0;
}

/* 图表容器 */
.chart-container {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-5px); /* 悬停时上移 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.chart-title {
    font-size: 20px;
    color: #d6336c; /* 深粉色文字 */
    margin-bottom: 20px;
}

.footer {
  position: relative;
  background: linear-gradient(to top, #df9292, #f8c4c4); /* 渐变背景 */
  padding-top: 10rem;
  padding-bottom: 2rem;
  margin-top: 5rem; /* 与页面内容的间距 */
}

.footer img {
  position: absolute;
  top: -10rem;
  left: 0;
  height: 10rem;
  width: 100%;
  object-fit: cover; /* 确保图片比例不变形 */
}

.footer .contact {
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
  margin-top: 2rem; /* 调整文字与图片的间距 */
}

.footer .credit {
  text-align: center;
  color: #fff;
  font-size: 2rem;
  padding: 2rem 1rem;
  margin-top: 1.5rem; /* 调整文字间距 */
}

.footer .credit span {
  font-weight: 1000;
  color: #fff;
}